export default {
  methods: {
    checkPermission(key) {
      const points = this.$store.getters.roles?.points
      if (points && points.length) {
        return points.includes(key)
      }
      return false
    }
  }
}
